package com.emall.auth.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @author YuanShijia
 * @ClassName UserRegist.java
 * @Description
 * @createTime 2020年05月22日 11:14:00
 */
@Data
public class UserRegistVo {
    @NotEmpty(message = "用户名不能为空")
    @Length(min = 5, max = 18, message = "用户名必须5-18位")
    private String username;
    @NotEmpty(message = "密码不能为空")
    @Length(min = 5, max = 18, message = "密码必须5-18位")
    private String password;
    @NotEmpty(message = "手机号不能为空")
    //@Pattern(regexp = "^[1]([3-9])[0-9]{0}$", message = "手机号格式不正确")
    private String phone;
    //private String code;
}
